import {QueryPage} from "@/api/common/type.ts";

export interface ElectricalControlClassification {
    id: number | undefined,
    parentId: number | undefined, // 父分类ID
    name: string | undefined,  // 分类名称
    remark: string | undefined  // 备注
}

export interface ElectricalControlMaterial {
    id: number | undefined,
    classificationId: number | undefined, // 分类ID
    name: string | undefined,  // 材料名称
    specification: string | undefined, // 型号规格
    price: number | undefined, // 单价
    brand: string | undefined, // 品牌
    remark: string | undefined, // 备注说明
    priceTwo: number | undefined, // 单价2
    premium: number | undefined // 溢价
}

// 分页查询分类列表请求参数
export interface ElectricalControlClassificationListParam extends QueryPage {
    parentId: number | undefined,
    name: string | undefined
}

// 分页查询材料列表请求参数
export interface ElectricalControlMaterialListParam extends QueryPage {
    classificationId: number | undefined,
    name: string | undefined,
    brand: string | undefined
}
